<!doctype html>
<html>
<head>
<meta charset = "UTF-8" />
<link rel = "stylesheet" href = "../templates/css/new.css" />
<title>修改密码</title>
{literal}
	<script>
		function check() {
			var new1 = myform.newpw1.value;
			var new2 = myform.newpw2.value;
			if(new1 == "" || new2 == "") {
				alert("新密码不能为空！");
				myform.newpw1.focus();
				return false;
			}
			if(new1 != new2) {
				alert("两次输入的密码不一致！");
				myform.newpw2.focus();
				return false;
			}
		}
	</script>
{/literal}
</head>
<body>
<div id = "change">
<form name = "myform" method = "post" action = "" onsubmit = "return check();">
	<table>
		<tr>
			<td width = "120">原密码：</td>
			<td><input type = "password" name = "oldpw" class = "input" /></td>
		</tr>
		<tr>
			<td>新密码：</td>
			<td><input type = "password" name = "newpw1" class = "input" /></td>
		</tr>
		<tr>
			<td>确认密码：</td>
			<td><input type = "password" name = "newpw2" class = "input" /></td>
		</tr>
		<tr>
			<td><input type = "submit" name = "sub" value = "确 认" class = "btn" /></td>
		</tr>
	</table>
</form>
</div>
</body>
</html>